package cn.zcy.springboot_mybatis.service.impl;

import cn.zcy.springboot_mybatis.domain.Dept;
import cn.zcy.springboot_mybatis.mapper.DeptMapper;
import cn.zcy.springboot_mybatis.service.IDeptService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements IDeptService {

    @Autowired
    private DeptMapper mapper;
    @Override
    public List<Dept> selectList() {
        PageHelper.startPage(1,10);
        return mapper.selectAll();
    }
}
